package main

import "fmt"

// 嵌套结构体，类似于java的继承
func main() {
	father := Father{Name: "a", age: 32, sex: "male"}
	mather := Mather{father: father, bra: "36c"}
	fmt.Println(father)
	fmt.Println(mather)
}

type Father struct {
	Name string
	age  int
	sex  string
}

type Mather struct {
	father Father
	bra    string
}
